package oop1;

public class TestDriver1 {
    public static void main(String[] args) {

        System.out.println("----继承--------------");

        /**
         * public  static  void  test01(){}
         */
        test01();
        /**
         *  Student stu = test01();//调用封装的类，以访问修饰符的方式
         *   public  static  Student test01(){}
         */

    }
    /**
     * 继承
     */

    public  static  void  test01(){
        Person per = new Person();
        System.out.println();
        Student stu = new Student();
        System.out.println();
        Student stu1 = new Student("小花",20,"女","101111","80");
        System.out.println();
        per.doEating();
        System.out.println();
        per.doSleeping();
        System.out.println();
        stu.doStuding();
        System.out.println();
        stu1.doStuding();
        System.out.println();
    }
}
